<template>
  <div class="demo-title">search-bar/demo3</div>
  <div class="demo">
    <SearchBar v-model="val">
      <template #leftin>
        <Icon name="setting" size="14px" />
      </template>
    </SearchBar>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import SearchBar from '@sscd-mobile/search-bar'
  import Icon from '@sscd-mobile/icon'
  const val = ref('')
</script>

<style lang="less" scoped>
  .demo {
    height: 80px;
    padding-top: 12px;
    background-color: #fff;
  }
</style>
